package com.example.his.api.db.dao;

import com.example.his.api.db.pojo.GoodsEntiy;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * @author myname
 * @description 针对表【tb_goods(体检套餐表)】的数据库操作Mapper
 * @createDate 2024-06-03 23:28:12
 * @Entity generator.domain.GoodsEntiy
 */
public interface GoodsDao {
  
  public ArrayList <HashMap> searchByPage(Map param);
  
  public long searchCount(Map param);
  
  public int insert(GoodsEntiy goodsEntiy);
  
  public HashMap searchById(Map param);
  
  public int update(GoodsEntiy goodsEntiy);
  
  public GoodsEntiy searchEntityById(int id);
  
  public int updateCheckup(Map param);
  
  public int updateStatus(Map param);
  
  public ArrayList <String> searchImageByIds(Integer[] ids);
  
  public int deleteByIds(Integer[] ids);
  
  //  查询某个商品中销量前四名的商品记录
  public ArrayList <HashMap> searchByPartIdLimit4(int partId);
  
  //  业务端分页查询商品
  public ArrayList <HashMap> searchListByPage(Map param);
  
  //    业务端分页查询商品总数
  public long searchListCount(Map param);
  
  //   查询当前订单的商品信息
  public HashMap searchSnapshotNeededById(int id);
  
  //  更新商品销量
  public int updateSalesVolume(Map param);
}




